<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>学生信息</title>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!--<link rel="stylesheet" th:href="@{/css/bootstrap.css}">-->
    <!--<script type="text/javascript" th:src="@{/js/jquery-3.5.1.js}"></script>-->
    <!--<script type="text/javascript" th:src="@{/js/bootstrap.js}"></script>-->

</head>
<body>

<p class="h5" style="margin-bottom: 10px;margin-top: 5px">在此界面您可查看老师与其课程信息</p>

<ul class="list-group" style="margin-top: 30px;" th:each="teacherInfos:${teacherInfo}">
    <li class="list-group-item row list-group-item-warning"><span>老师姓名：</span><span style="margin-right: 30px;" th:text="${teacherInfos.getTrueTeacher().getTrueTeacherName()}"></span><span>老师工号：</span><span th:text="${teacherInfos.getTrueTeacher().getTrueTeacherId()}"></span>
        <!--<button th:id="${sInfo.getStudentId()}" class="btn btn-danger" delete style="display:block;float:right;margin-right: 20px;">删除 </button>-->
    </li>
    <li class="list-group-item row list-group-item-light" >
        <div class="col" style="margin-top: 20px;" th:each="course:${teacherInfos.getTeacherCourses()}">
            <span class="label label-warning" >课程名字:</span><span style="margin-right: 30px;" class="label label-info" th:text="${course.getCourseName()}"> </span>
            <span class="label label-info" >总人数：</span><span style="margin-right: 5px;" class="label label-info" th:text="${course.getNumberOfStudent()}"> </span>
            <span class="label label-info" >评测人数：</span><span style="margin-right: 5px;" class="label label-info"  th:text="${course.getNumberOfEvaluateStudent()}"> </span>
            <span class="label label-info">评测率：</span><span  style="margin-right: 5px;" class="label label-info" th:text="${course.getEvaluate()}"> </span>
            <form method="get" action="/getQuestionAdviceByTeacherCourse">
                <input th:value="${course.getCourseName()}" name="courseName" hidden="hidden">
                <button  th:excel="${course.getCourseName()}" class="btn btn-default btn-xs" style="display:block;float:right;margin-right: 20px;">导出</button>
            </form>

        </div>
        <!--<div class="col" style="margin-top: 30px;">-->
            <!--<span class="label label-warning" style="margin-right: 30px;">课程评教信息</span><span class="label label-info" th:text="${sInfo.getStudentEvaluateInfo()}"></span>-->
        <!--</div>-->
    </li>
</ul>



<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel">提示信息</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <span id="msg-span"> </span>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary  btn-success" data-dismiss="modal">确定</button>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    $(function () {



    })

</script>
</body>
</html>